package com.ourteam.workspace.dao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;

/**
 * Template Name : DAO查询对象 Template Version : 1 Template Last Modfiy Date : Sat Aug 19 10:06:32 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:32 Warning ! This file will be overwrite when
 * regenerate !
 */
public class WorkspaceResourceUIPageRelateDAOQueryBean extends BaseQueryBean {

  public WorkspaceResourceUIPageRelateDAOQueryBean() {
    super();
  }

  public WorkspaceResourceUIPageRelateDAOQueryBean(BaseQueryBean aQueryBean) {
    super(aQueryBean);
  }

  public WorkspaceResourceUIPageRelateDAOQueryBean(BaseQueryBean aQueryBean, Map tableReplaceMap) {
    super(aQueryBean, tableReplaceMap);
  }

  public Criteria createCriteria() {

    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  protected Criteria createCriteriaInternal() {
    return new Criteria(this);
  }

  public void addIdSelectProperty() {
    addIdSelectProperty("id");
  }

  public void addIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.Id, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.Id, "id");
    }
  }

  public void addWorkspaceResourceIdSelectProperty() {
    addWorkspaceResourceIdSelectProperty("workspaceResourceId");
  }

  public void addWorkspaceResourceIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId, "workspaceResourceId");
    }
  }

  public void addUiPageIdSelectProperty() {
    addUiPageIdSelectProperty("uiPageId");
  }

  public void addUiPageIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiPageId, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiPageId, "uiPageId");
    }
  }

  public void addLastGenCodeTimeSelectProperty() {
    addLastGenCodeTimeSelectProperty("lastGenCodeTime");
  }

  public void addLastGenCodeTimeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime, "lastGenCodeTime");
    }
  }

  public void addSubmitterIdSelectProperty() {
    addSubmitterIdSelectProperty("submitterId");
  }

  public void addSubmitterIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.SubmitterId, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.SubmitterId, "submitterId");
    }
  }

  public void addSubmitterNameSelectProperty() {
    addSubmitterNameSelectProperty("submitterName");
  }

  public void addSubmitterNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.SubmitterName, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.SubmitterName, "submitterName");
    }
  }

  public void addStatusSelectProperty() {
    addStatusSelectProperty("status");
  }

  public void addStatusSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.Status, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.Status, "status");
    }
  }

  public void addRemarksSelectProperty() {
    addRemarksSelectProperty("remarks");
  }

  public void addRemarksSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.Remarks, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.Remarks, "remarks");
    }
  }

  public void addResourcePathSelectProperty() {
    addResourcePathSelectProperty("resourcePath");
  }

  public void addResourcePathSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.ResourcePath, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.ResourcePath, "resourcePath");
    }
  }

  public void addResourceTypeSelectProperty() {
    addResourceTypeSelectProperty("resourceType");
  }

  public void addResourceTypeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.ResourceType, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.ResourceType, "resourceType");
    }
  }

  public void addWorkspaceIdSelectProperty() {
    addWorkspaceIdSelectProperty("workspaceId");
  }

  public void addWorkspaceIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.WorkspaceId, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.WorkspaceId, "workspaceId");
    }
  }

  public void addPageCodeSelectProperty() {
    addPageCodeSelectProperty("pageCode");
  }

  public void addPageCodeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.PageCode, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.PageCode, "pageCode");
    }
  }

  public void addPageNameSelectProperty() {
    addPageNameSelectProperty("pageName");
  }

  public void addPageNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.PageName, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.PageName, "pageName");
    }
  }

  public void addUiDomainIdSelectProperty() {
    addUiDomainIdSelectProperty("uiDomainId");
  }

  public void addUiDomainIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiDomainId, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiDomainId, "uiDomainId");
    }
  }

  public void addUiDomainNameSelectProperty() {
    addUiDomainNameSelectProperty("uiDomainName");
  }

  public void addUiDomainNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiDomainName, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiDomainName, "uiDomainName");
    }
  }

  public void addUiDomainCodeSelectProperty() {
    addUiDomainCodeSelectProperty("uiDomainCode");
  }

  public void addUiDomainCodeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiDomainCode, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceUIPageRelateDAO.UiDomainCode, "uiDomainCode");
    }
  }

  public void addAllSelectProperties() {

    addIdSelectProperty();

    addWorkspaceResourceIdSelectProperty();

    addUiPageIdSelectProperty();

    addLastGenCodeTimeSelectProperty();

    addSubmitterIdSelectProperty();

    addSubmitterNameSelectProperty();

    addStatusSelectProperty();

    addRemarksSelectProperty();

    addResourcePathSelectProperty();

    addResourceTypeSelectProperty();

    addWorkspaceIdSelectProperty();

    addPageCodeSelectProperty();

    addPageNameSelectProperty();

    addUiDomainIdSelectProperty();

    addUiDomainNameSelectProperty();

    addUiDomainCodeSelectProperty();
  }

  public static class Criteria
      extends BaseWhereCriterion<WorkspaceResourceUIPageRelateDAOQueryBean> {

    protected Criteria(WorkspaceResourceUIPageRelateDAOQueryBean aParentObject) {
      super(aParentObject);
    }

    public Criteria andIdIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " is null");
      return this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " is not null");
      return this;
    }

    public Criteria andIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Id
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.Id
              + " <> ''");
      return this;
    }

    public Criteria andIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.Id
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.Id
              + " = '')");
      return this;
    }

    public Criteria andIdEqualTo(long value) {
      return andIdEqualTo(Long.valueOf(value));
    }

    public Criteria andIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " = ", value, "id");
      return this;
    }

    public Criteria andIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Id);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotEqualTo(long value) {
      return andIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToOrIsNull(long value) {
      return andIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Id
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.Id
              + " <>",
          value,
          "id");
      return this;
    }

    public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Id);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThan(long value) {
      return andIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " >", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Id);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(long value) {
      return andIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " >=", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Id);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThan(long value) {
      return andIdLessThan(Long.valueOf(value));
    }

    public Criteria andIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " <", value, "id");
      return this;
    }

    public Criteria andIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Id);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(long value) {
      return andIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " <=", value, "id");
      return this;
    }

    public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Id);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdIn(long[] values) {
      if (values.length == 1) {
        return andIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andIdEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " not in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdBetween(long value1, long value2) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(long value1, long value2) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " is null");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " is not null");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId
              + " <> ''");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId
              + " = '')");
      return this;
    }

    public Criteria andWorkspaceResourceIdEqualTo(long value) {
      return andWorkspaceResourceIdEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " = ",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualTo(long value) {
      return andWorkspaceResourceIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdNotEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " <>",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualToOrIsNull(long value) {
      return andWorkspaceResourceIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId
              + " <>",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThan(long value) {
      return andWorkspaceResourceIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdGreaterThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " >",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualTo(long value) {
      return andWorkspaceResourceIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " >=",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThan(long value) {
      return andWorkspaceResourceIdLessThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdLessThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " <",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualTo(long value) {
      return andWorkspaceResourceIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " <=",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceResourceIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdNotIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceResourceIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " not in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andWorkspaceResourceIdEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andWorkspaceResourceIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " not in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andWorkspaceResourceIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " in",
            Arrays.asList(values),
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andWorkspaceResourceIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " not in",
            Arrays.asList(values),
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " not between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceResourceId + " not between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andUiPageIdIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " is null");
      return this;
    }

    public Criteria andUiPageIdIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " is not null");
      return this;
    }

    public Criteria andUiPageIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiPageId
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.UiPageId
              + " <> ''");
      return this;
    }

    public Criteria andUiPageIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.UiPageId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiPageId
              + " = '')");
      return this;
    }

    public Criteria andUiPageIdEqualTo(long value) {
      return andUiPageIdEqualTo(Long.valueOf(value));
    }

    public Criteria andUiPageIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " = ", value, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiPageId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiPageIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdNotEqualTo(long value) {
      return andUiPageIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andUiPageIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " <>", value, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdNotEqualToOrIsNull(long value) {
      return andUiPageIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andUiPageIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiPageId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiPageId
              + " <>",
          value,
          "uiPageId");
      return this;
    }

    public Criteria andUiPageIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiPageId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiPageIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdGreaterThan(long value) {
      return andUiPageIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andUiPageIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " >", value, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiPageId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiPageIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdGreaterThanOrEqualTo(long value) {
      return andUiPageIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andUiPageIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " >=", value, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiPageId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiPageIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdLessThan(long value) {
      return andUiPageIdLessThan(Long.valueOf(value));
    }

    public Criteria andUiPageIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " <", value, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiPageId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiPageIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdLessThanOrEqualTo(long value) {
      return andUiPageIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andUiPageIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " <=", value, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiPageId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiPageIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdIn(long[] values) {
      if (values.length == 1) {
        return andUiPageIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " in", values, "uiPageId");
        return this;
      }
    }

    public Criteria andUiPageIdNotIn(long[] values) {
      if (values.length == 1) {
        return andUiPageIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " not in", values, "uiPageId");
        return this;
      }
    }

    public Criteria andUiPageIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andUiPageIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " in", values, "uiPageId");
        return this;
      }
    }

    public Criteria andUiPageIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andUiPageIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " not in", values, "uiPageId");
        return this;
      }
    }

    public Criteria andUiPageIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andUiPageIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiPageId + " in", Arrays.asList(values), "uiPageId");
        return this;
      }
    }

    public Criteria andUiPageIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andUiPageIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiPageId + " not in",
            Arrays.asList(values),
            "uiPageId");
        return this;
      }
    }

    public Criteria andUiPageIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiPageId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiPageIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiPageId + " between", value1, value2, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiPageId + " between", value1, value2, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiPageId + " not between", value1, value2, "uiPageId");
      return this;
    }

    public Criteria andUiPageIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiPageId + " not between", value1, value2, "uiPageId");
      return this;
    }

    public Criteria andLastGenCodeTimeIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " is null");
      return this;
    }

    public Criteria andLastGenCodeTimeIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " is not null");
      return this;
    }

    public Criteria andLastGenCodeTimeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime
              + " <> ''");
      return this;
    }

    public Criteria andLastGenCodeTimeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime
              + " = '')");
      return this;
    }

    public Criteria andLastGenCodeTimeEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " = ", value, "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " <>", value, "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualToOrIsNull(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime
              + " <>",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThan(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " >", value, "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanOrEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " >=", value, "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeLessThan(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " <", value, "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanOrEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " <=", value, "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeIn(List<java.util.Date> values) {

      if (values.size() == 1) {
        return andLastGenCodeTimeEqualTo(values.get(0));
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " in", values, "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeNotIn(List<java.util.Date> values) {
      if (values.size() == 1) {
        return andLastGenCodeTimeNotEqualTo(values.get(0));
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " not in",
            values,
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeIn(java.util.Date[] values) {

      if (values.length == 1) {
        return andLastGenCodeTimeEqualTo(values[0]);
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " in",
            Arrays.asList(values),
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeNotIn(java.util.Date[] values) {
      if (values.length == 1) {
        return andLastGenCodeTimeNotEqualTo(values[0]);
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " not in",
            Arrays.asList(values),
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeBetween(java.util.Date value1, java.util.Date value2) {
      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " between",
          value1,
          value2,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeNotBetween(java.util.Date value1, java.util.Date value2) {
      addCriterionForJDBCDate(
          IWorkspaceResourceUIPageRelateDAO.LastGenCodeTime + " not between",
          value1,
          value2,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andSubmitterIdIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " is null");
      return this;
    }

    public Criteria andSubmitterIdIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " is not null");
      return this;
    }

    public Criteria andSubmitterIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterId
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.SubmitterId
              + " <> ''");
      return this;
    }

    public Criteria andSubmitterIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.SubmitterId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.SubmitterId
              + " = '')");
      return this;
    }

    public Criteria andSubmitterIdEqualTo(long value) {
      return andSubmitterIdEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " = ", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdNotEqualTo(long value) {
      return andSubmitterIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " <>", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotEqualToOrIsNull(long value) {
      return andSubmitterIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andSubmitterIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.SubmitterId
              + " <>",
          value,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdGreaterThan(long value) {
      return andSubmitterIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andSubmitterIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " >", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdGreaterThanOrEqualTo(long value) {
      return andSubmitterIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " >=", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdLessThan(long value) {
      return andSubmitterIdLessThan(Long.valueOf(value));
    }

    public Criteria andSubmitterIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " <", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdLessThanOrEqualTo(long value) {
      return andSubmitterIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " <=", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdIn(long[] values) {
      if (values.length == 1) {
        return andSubmitterIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " in", values, "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdNotIn(long[] values) {
      if (values.length == 1) {
        return andSubmitterIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterId + " not in", values, "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andSubmitterIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " in", values, "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andSubmitterIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterId + " not in", values, "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andSubmitterIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterId + " in",
            Arrays.asList(values),
            "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andSubmitterIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterId + " not in",
            Arrays.asList(values),
            "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterId + " between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterId + " between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterId + " not between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterId + " not between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterNameIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " is null");
      return this;
    }

    public Criteria andSubmitterNameIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " is not null");
      return this;
    }

    public Criteria andSubmitterNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterName
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.SubmitterName
              + " <> ''");
      return this;
    }

    public Criteria andSubmitterNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.SubmitterName
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.SubmitterName
              + " = '')");
      return this;
    }

    public Criteria andSubmitterNameEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " = ", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " <>", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterName
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.SubmitterName
              + " <>",
          value,
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " >", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " >=", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " <", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " <=", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.SubmitterName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterName + " like",
          buffer.toString(),
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterName + " not like",
          buffer.toString(),
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameIn(List<String> values) {

      if (values.size() == 1) {
        return andSubmitterNameEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterName + " in", values, "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andSubmitterNameNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterName + " not in", values, "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameIn(String[] values) {

      if (values.length == 1) {
        return andSubmitterNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterName + " in",
            Arrays.asList(values),
            "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameNotIn(String[] values) {
      if (values.length == 1) {
        return andSubmitterNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.SubmitterName + " not in",
            Arrays.asList(values),
            "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.SubmitterName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterName + " between",
          value1,
          value2,
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.SubmitterName + " not between",
          value1,
          value2,
          "submitterName");
      return this;
    }

    public Criteria andStatusIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " is null");
      return this;
    }

    public Criteria andStatusIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " is not null");
      return this;
    }

    public Criteria andStatusIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Status
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.Status
              + " <> ''");
      return this;
    }

    public Criteria andStatusIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.Status
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.Status
              + " = '')");
      return this;
    }

    public Criteria andStatusEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " = ", value, "status");
      return this;
    }

    public Criteria andStatusEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Status);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " <>", value, "status");
      return this;
    }

    public Criteria andStatusNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Status
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.Status
              + " <>",
          value,
          "status");
      return this;
    }

    public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Status);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " >", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Status);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " >=", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Status);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " <", value, "status");
      return this;
    }

    public Criteria andStatusLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Status);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " <=", value, "status");
      return this;
    }

    public Criteria andStatusLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Status);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Status + " not like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusIn(List<String> values) {

      if (values.size() == 1) {
        return andStatusEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " in", values, "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(List<String> values) {
      if (values.size() == 1) {
        return andStatusNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " not in", values, "status");
        return this;
      }
    }

    public Criteria andStatusIn(String[] values) {

      if (values.length == 1) {
        return andStatusEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.Status + " in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(String[] values) {
      if (values.length == 1) {
        return andStatusNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.Status + " not in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusBetween(String value1, String value2) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Status + " between", value1, value2, "status");
      return this;
    }

    public Criteria andStatusNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Status + " not between", value1, value2, "status");
      return this;
    }

    public Criteria andRemarksIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " is null");
      return this;
    }

    public Criteria andRemarksIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " is not null");
      return this;
    }

    public Criteria andRemarksIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Remarks
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.Remarks
              + " <> ''");
      return this;
    }

    public Criteria andRemarksIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.Remarks
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.Remarks
              + " = '')");
      return this;
    }

    public Criteria andRemarksEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " = ", value, "remarks");
      return this;
    }

    public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Remarks);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " <>", value, "remarks");
      return this;
    }

    public Criteria andRemarksNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Remarks
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.Remarks
              + " <>",
          value,
          "remarks");
      return this;
    }

    public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Remarks);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " >", value, "remarks");
      return this;
    }

    public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Remarks);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " >=", value, "remarks");
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Remarks);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " <", value, "remarks");
      return this;
    }

    public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Remarks);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " <=", value, "remarks");
      return this;
    }

    public Criteria andRemarksLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.Remarks);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Remarks + " like", buffer.toString(), "remarks");
      return this;
    }

    public Criteria andRemarksNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Remarks + " not like", buffer.toString(), "remarks");
      return this;
    }

    public Criteria andRemarksIn(List<String> values) {

      if (values.size() == 1) {
        return andRemarksEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " in", values, "remarks");
        return this;
      }
    }

    public Criteria andRemarksNotIn(List<String> values) {
      if (values.size() == 1) {
        return andRemarksNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " not in", values, "remarks");
        return this;
      }
    }

    public Criteria andRemarksIn(String[] values) {

      if (values.length == 1) {
        return andRemarksEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.Remarks + " in", Arrays.asList(values), "remarks");
        return this;
      }
    }

    public Criteria andRemarksNotIn(String[] values) {
      if (values.length == 1) {
        return andRemarksNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.Remarks + " not in",
            Arrays.asList(values),
            "remarks");
        return this;
      }
    }

    public Criteria andRemarksIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.Remarks + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Remarks + " between", value1, value2, "remarks");
      return this;
    }

    public Criteria andRemarksNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.Remarks + " not between", value1, value2, "remarks");
      return this;
    }

    public Criteria andResourcePathIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " is null");
      return this;
    }

    public Criteria andResourcePathIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " is not null");
      return this;
    }

    public Criteria andResourcePathIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourcePath
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.ResourcePath
              + " <> ''");
      return this;
    }

    public Criteria andResourcePathIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.ResourcePath
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.ResourcePath
              + " = '')");
      return this;
    }

    public Criteria andResourcePathEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " = ", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourcePath);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " <>", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourcePath
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.ResourcePath
              + " <>",
          value,
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourcePath);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " >", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourcePath);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " >=", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourcePath);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " <", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourcePath);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " <=", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourcePath);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourcePath + " like",
          buffer.toString(),
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourcePath + " not like",
          buffer.toString(),
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathIn(List<String> values) {

      if (values.size() == 1) {
        return andResourcePathEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourcePath + " in", values, "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathNotIn(List<String> values) {
      if (values.size() == 1) {
        return andResourcePathNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourcePath + " not in", values, "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathIn(String[] values) {

      if (values.length == 1) {
        return andResourcePathEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourcePath + " in",
            Arrays.asList(values),
            "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathNotIn(String[] values) {
      if (values.length == 1) {
        return andResourcePathNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourcePath + " not in",
            Arrays.asList(values),
            "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourcePath + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourcePath + " between",
          value1,
          value2,
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourcePath + " not between",
          value1,
          value2,
          "resourcePath");
      return this;
    }

    public Criteria andResourceTypeIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " is null");
      return this;
    }

    public Criteria andResourceTypeIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " is not null");
      return this;
    }

    public Criteria andResourceTypeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourceType
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.ResourceType
              + " <> ''");
      return this;
    }

    public Criteria andResourceTypeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.ResourceType
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.ResourceType
              + " = '')");
      return this;
    }

    public Criteria andResourceTypeEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " = ", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourceType);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " <>", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourceType
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.ResourceType
              + " <>",
          value,
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourceType);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " >", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourceType);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " >=", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourceType);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " <", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourceType);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " <=", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.ResourceType);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourceType + " like",
          buffer.toString(),
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourceType + " not like",
          buffer.toString(),
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeIn(List<String> values) {

      if (values.size() == 1) {
        return andResourceTypeEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourceType + " in", values, "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andResourceTypeNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourceType + " not in", values, "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeIn(String[] values) {

      if (values.length == 1) {
        return andResourceTypeEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourceType + " in",
            Arrays.asList(values),
            "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeNotIn(String[] values) {
      if (values.length == 1) {
        return andResourceTypeNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.ResourceType + " not in",
            Arrays.asList(values),
            "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.ResourceType + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourceType + " between",
          value1,
          value2,
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.ResourceType + " not between",
          value1,
          value2,
          "resourceType");
      return this;
    }

    public Criteria andWorkspaceIdIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " is null");
      return this;
    }

    public Criteria andWorkspaceIdIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " is not null");
      return this;
    }

    public Criteria andWorkspaceIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceId
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceId
              + " <> ''");
      return this;
    }

    public Criteria andWorkspaceIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceId
              + " = '')");
      return this;
    }

    public Criteria andWorkspaceIdEqualTo(long value) {
      return andWorkspaceIdEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " = ", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdNotEqualTo(long value) {
      return andWorkspaceIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " <>", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotEqualToOrIsNull(long value) {
      return andWorkspaceIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.WorkspaceId
              + " <>",
          value,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdGreaterThan(long value) {
      return andWorkspaceIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " >", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualTo(long value) {
      return andWorkspaceIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " >=", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdLessThan(long value) {
      return andWorkspaceIdLessThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " <", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdLessThanOrEqualTo(long value) {
      return andWorkspaceIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " <=", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.WorkspaceId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " in", values, "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdNotIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " not in", values, "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andWorkspaceIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " in", values, "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andWorkspaceIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " not in", values, "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andWorkspaceIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " in",
            Arrays.asList(values),
            "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andWorkspaceIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " not in",
            Arrays.asList(values),
            "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " not between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.WorkspaceId + " not between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andPageCodeIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " is null");
      return this;
    }

    public Criteria andPageCodeIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " is not null");
      return this;
    }

    public Criteria andPageCodeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageCode
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.PageCode
              + " <> ''");
      return this;
    }

    public Criteria andPageCodeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.PageCode
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.PageCode
              + " = '')");
      return this;
    }

    public Criteria andPageCodeEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " = ", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageCode);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " <>", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageCode
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.PageCode
              + " <>",
          value,
          "pageCode");
      return this;
    }

    public Criteria andPageCodeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageCode);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " >", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageCode);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " >=", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageCode);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " <", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageCode);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " <=", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageCode);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageCode + " like", buffer.toString(), "pageCode");
      return this;
    }

    public Criteria andPageCodeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageCode + " not like", buffer.toString(), "pageCode");
      return this;
    }

    public Criteria andPageCodeIn(List<String> values) {

      if (values.size() == 1) {
        return andPageCodeEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " in", values, "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andPageCodeNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " not in", values, "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeIn(String[] values) {

      if (values.length == 1) {
        return andPageCodeEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.PageCode + " in", Arrays.asList(values), "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeNotIn(String[] values) {
      if (values.length == 1) {
        return andPageCodeNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.PageCode + " not in",
            Arrays.asList(values),
            "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageCode + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageCode + " between", value1, value2, "pageCode");
      return this;
    }

    public Criteria andPageCodeNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageCode + " not between", value1, value2, "pageCode");
      return this;
    }

    public Criteria andPageNameIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " is null");
      return this;
    }

    public Criteria andPageNameIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " is not null");
      return this;
    }

    public Criteria andPageNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageName
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.PageName
              + " <> ''");
      return this;
    }

    public Criteria andPageNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.PageName
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.PageName
              + " = '')");
      return this;
    }

    public Criteria andPageNameEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " = ", value, "pageName");
      return this;
    }

    public Criteria andPageNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " <>", value, "pageName");
      return this;
    }

    public Criteria andPageNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageName
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.PageName
              + " <>",
          value,
          "pageName");
      return this;
    }

    public Criteria andPageNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " >", value, "pageName");
      return this;
    }

    public Criteria andPageNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " >=", value, "pageName");
      return this;
    }

    public Criteria andPageNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " <", value, "pageName");
      return this;
    }

    public Criteria andPageNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " <=", value, "pageName");
      return this;
    }

    public Criteria andPageNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.PageName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageName + " like", buffer.toString(), "pageName");
      return this;
    }

    public Criteria andPageNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageName + " not like", buffer.toString(), "pageName");
      return this;
    }

    public Criteria andPageNameIn(List<String> values) {

      if (values.size() == 1) {
        return andPageNameEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " in", values, "pageName");
        return this;
      }
    }

    public Criteria andPageNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andPageNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " not in", values, "pageName");
        return this;
      }
    }

    public Criteria andPageNameIn(String[] values) {

      if (values.length == 1) {
        return andPageNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.PageName + " in", Arrays.asList(values), "pageName");
        return this;
      }
    }

    public Criteria andPageNameNotIn(String[] values) {
      if (values.length == 1) {
        return andPageNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.PageName + " not in",
            Arrays.asList(values),
            "pageName");
        return this;
      }
    }

    public Criteria andPageNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.PageName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageName + " between", value1, value2, "pageName");
      return this;
    }

    public Criteria andPageNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.PageName + " not between", value1, value2, "pageName");
      return this;
    }

    public Criteria andUiDomainIdIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " is null");
      return this;
    }

    public Criteria andUiDomainIdIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " is not null");
      return this;
    }

    public Criteria andUiDomainIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainId
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainId
              + " <> ''");
      return this;
    }

    public Criteria andUiDomainIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.UiDomainId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainId
              + " = '')");
      return this;
    }

    public Criteria andUiDomainIdEqualTo(long value) {
      return andUiDomainIdEqualTo(Long.valueOf(value));
    }

    public Criteria andUiDomainIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " = ", value, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdNotEqualTo(long value) {
      return andUiDomainIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andUiDomainIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " <>", value, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdNotEqualToOrIsNull(long value) {
      return andUiDomainIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andUiDomainIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainId
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainId
              + " <>",
          value,
          "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdGreaterThan(long value) {
      return andUiDomainIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andUiDomainIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " >", value, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdGreaterThanOrEqualTo(long value) {
      return andUiDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andUiDomainIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " >=", value, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdLessThan(long value) {
      return andUiDomainIdLessThan(Long.valueOf(value));
    }

    public Criteria andUiDomainIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " <", value, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdLessThanOrEqualTo(long value) {
      return andUiDomainIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andUiDomainIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " <=", value, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdIn(long[] values) {
      if (values.length == 1) {
        return andUiDomainIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " in", values, "uiDomainId");
        return this;
      }
    }

    public Criteria andUiDomainIdNotIn(long[] values) {
      if (values.length == 1) {
        return andUiDomainIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainId + " not in", values, "uiDomainId");
        return this;
      }
    }

    public Criteria andUiDomainIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andUiDomainIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " in", values, "uiDomainId");
        return this;
      }
    }

    public Criteria andUiDomainIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andUiDomainIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainId + " not in", values, "uiDomainId");
        return this;
      }
    }

    public Criteria andUiDomainIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andUiDomainIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainId + " in",
            Arrays.asList(values),
            "uiDomainId");
        return this;
      }
    }

    public Criteria andUiDomainIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andUiDomainIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainId + " not in",
            Arrays.asList(values),
            "uiDomainId");
        return this;
      }
    }

    public Criteria andUiDomainIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainId + " between", value1, value2, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainId + " between", value1, value2, "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainId + " not between",
          value1,
          value2,
          "uiDomainId");
      return this;
    }

    public Criteria andUiDomainIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainId + " not between",
          value1,
          value2,
          "uiDomainId");
      return this;
    }

    public Criteria andUiDomainNameIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " is null");
      return this;
    }

    public Criteria andUiDomainNameIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " is not null");
      return this;
    }

    public Criteria andUiDomainNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainName
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainName
              + " <> ''");
      return this;
    }

    public Criteria andUiDomainNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.UiDomainName
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainName
              + " = '')");
      return this;
    }

    public Criteria andUiDomainNameEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " = ", value, "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " <>", value, "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainName
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainName
              + " <>",
          value,
          "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " >", value, "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " >=", value, "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " <", value, "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " <=", value, "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainName + " like",
          buffer.toString(),
          "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainName + " not like",
          buffer.toString(),
          "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameIn(List<String> values) {

      if (values.size() == 1) {
        return andUiDomainNameEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainName + " in", values, "uiDomainName");
        return this;
      }
    }

    public Criteria andUiDomainNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andUiDomainNameNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainName + " not in", values, "uiDomainName");
        return this;
      }
    }

    public Criteria andUiDomainNameIn(String[] values) {

      if (values.length == 1) {
        return andUiDomainNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainName + " in",
            Arrays.asList(values),
            "uiDomainName");
        return this;
      }
    }

    public Criteria andUiDomainNameNotIn(String[] values) {
      if (values.length == 1) {
        return andUiDomainNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainName + " not in",
            Arrays.asList(values),
            "uiDomainName");
        return this;
      }
    }

    public Criteria andUiDomainNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainName + " between",
          value1,
          value2,
          "uiDomainName");
      return this;
    }

    public Criteria andUiDomainNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainName + " not between",
          value1,
          value2,
          "uiDomainName");
      return this;
    }

    public Criteria andUiDomainCodeIsNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " is null");
      return this;
    }

    public Criteria andUiDomainCodeIsNotNull() {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " is not null");
      return this;
    }

    public Criteria andUiDomainCodeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainCode
              + " is not null AND "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainCode
              + " <> ''");
      return this;
    }

    public Criteria andUiDomainCodeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceUIPageRelateDAO.UiDomainCode
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainCode
              + " = '')");
      return this;
    }

    public Criteria andUiDomainCodeEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " = ", value, "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainCodeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeNotEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " <>", value, "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainCode
              + " is null OR "
              + IWorkspaceResourceUIPageRelateDAO.UiDomainCode
              + " <>",
          value,
          "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainCodeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeGreaterThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " >", value, "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainCodeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " >=", value, "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainCodeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeLessThan(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " <", value, "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainCodeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " <=", value, "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceUIPageRelateDAO.UiDomainCode);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andUiDomainCodeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " like",
          buffer.toString(),
          "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " not like",
          buffer.toString(),
          "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeIn(List<String> values) {

      if (values.size() == 1) {
        return andUiDomainCodeEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " in", values, "uiDomainCode");
        return this;
      }
    }

    public Criteria andUiDomainCodeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andUiDomainCodeNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " not in", values, "uiDomainCode");
        return this;
      }
    }

    public Criteria andUiDomainCodeIn(String[] values) {

      if (values.length == 1) {
        return andUiDomainCodeEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " in",
            Arrays.asList(values),
            "uiDomainCode");
        return this;
      }
    }

    public Criteria andUiDomainCodeNotIn(String[] values) {
      if (values.length == 1) {
        return andUiDomainCodeNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " not in",
            Arrays.asList(values),
            "uiDomainCode");
        return this;
      }
    }

    public Criteria andUiDomainCodeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andUiDomainCodeBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " between",
          value1,
          value2,
          "uiDomainCode");
      return this;
    }

    public Criteria andUiDomainCodeNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceUIPageRelateDAO.UiDomainCode + " not between",
          value1,
          value2,
          "uiDomainCode");
      return this;
    }
  }
}
